<div ng-controller="editEssayCtrl">




		<div class="widget">
			<div class="widget-header bordered-bottom bordered-lightred">
				<span class="widget-caption">编写文章</span>
			</div>
			<div class="widget-body">
				<form method="post" id="essay-form" ng-submit="addEssay()">
					<label>文章标题：</label>
					<input type="text" class="form-control" name="title" placeholder="文章标题" required style="margin-bottom: 20px;" ng-model="essay.title"/>
					<label>封面图片：</label>
					<input type="file" class="form-control" accept="image/*"  name="cover"  style="margin-bottom: 20px;" ng-model="essay.cover"/>
					<div id="editor" style="margin-bottom: 20px;"></div>
					<input type="submit"  class="btn btn-success" value="提交"/>
					<button class="btn btn-warning" ui-sref="teamactivity">返回</button>
				</form>
			</div>
		</div>

</div>

<script type="text/javascript">
	var E = window.wangEditor
	var editor = new E('#editor');
	editor.create()
</script>
